package com.hand.cloud.b2b.daos.impl;

import de.hybris.platform.core.model.EPOrderLogModel;
import de.hybris.platform.servicelayer.model.ModelService;

import java.util.Date;

import javax.annotation.Resource;

import org.springframework.stereotype.Component;

import com.hand.cloud.b2b.daos.EPOrderLogDAO;
import com.hand.cloud.b2b.enums.OrderOperateType;


/**
* @author Administrator
* @time 2014-8-26 下午2:20:31
*
*/
@Component(value = "epOrderLogDAO")
public class DefaultEPOrderLogDAO implements EPOrderLogDAO
{
     @Resource
     ModelService modelService;

     @Override
     public void LogForOrder(final String rowString, final OrderOperateType operateType, final Date date)
     {
          final EPOrderLogModel logModel = new EPOrderLogModel();
          logModel.setRowString(rowString);
          logModel.setOrderOperateType(operateType);
          logModel.setOrderOperateDate(date);
          modelService.save(logModel);

     }

}